
var OS = function()
{
};
/***显示提示信息****/
OS.showWarming = function(id,title)
{
	document.getElementById(id).innerHTML = '<img src="/admin/assets/images/warning.gif"><font color="#C00000">'+title+'</font>';
};
/****隐藏警告提示****/
OS.hideWarming = function(id)
{
	document.getElementById(id).innerHTML = "&nbsp;";
};
/*****显示提示信息****/
OS.showCue = function(id,title)
{
	document.getElementById(id).innerHTML = '<img src="/admin/assets/images/flag.gif"><font color="#C00000">'+title+'</font>';
}

/****显示加载提示****/
OS.showLoading = function(id,title)
{
	document.getElementById(id).innerHTML = '<img src="/assets/images/load.gif"><font color="#C00000">'+title+'</font>';
}
/***去除空格***/
String.prototype.trim = function() 
{
 return this.replace(/(^\s*)|(\s*$)/g, "");
}
/*** 验证邮件是否合法****/
function IsEmail(str)
{
	var regexp=/^[\.a-zA-Z0-9_-]{2,16}[@][a-zA-z0-9-]{1,100}[.]([a-zA-Z]{2,4}|[a-zA-Z]{2,4}[.][a-zA-Z]{2,4})$/g;
 	return regexp.test(str);
}